package com.szcinda.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface NotesRepository extends JpaRepository<Notes, String> {
    Notes findById(String id);
    List<Notes> findByUserIdAndStatusOrderByCreateTimeDesc(String userId, NotesStatus status);
}
